﻿using System.Collections.Generic;
using BO;
using Model;

namespace Controller
{
    /// <summary>
    /// Summary description for VYC0301Controller
    /// </summary>
    public class VYC0301Controller
    {
        private static VYC0301BO _vyc0301Bo;
        public VYC0301Controller()
        {
            //
            _vyc0301Bo = new VYC0301BO();
        }

        public List<ModelVYC0301> GetAllList()
        {
            return _vyc0301Bo.GetAllList();
        }

        public int AddData(ModelVYC0301 model)
        {
            return _vyc0301Bo.AddData(model);
        }

        public int EditData(ModelVYC0301 model)
        {
            return _vyc0301Bo.EditData(model);
        }

        public int DeleteData(ModelVYC0301 model)
        {
            return _vyc0301Bo.DeleteData(model);
        }

        public List<ModelVYC0301> GetById(int id)
        {
            return _vyc0301Bo.GetById(id);
        }
        public List<ModelVYC0301> GetByIdSubLoaiTour(int idLoaitour)
        {
            return _vyc0301Bo.GetByIdSubLoaiTour(idLoaitour);
        }
    }
}